package com.hbnu.dao;


import com.hbnu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDao {


    //查询数据库表中的所有数据
    @Select("select * from tb_user")
    List<User> findAllUser();


    List<User> findUsersByUsername(@Param("usernames") String...name);
}
